/**
    Copyright 2015 Table Rider
    By: Anders Nylander & Christoffer Lindström & Daniel Westerlund
*/

#ifndef TABLERIDER_H
#define TABLERIDER_H
#include "Commands.h"
#include "Definitions.h"
#include "DistanceSensor.h"
#include "Motor.h"
#include "ControllerMotor.h"
#include "Arduino.h"

class TableRider
{
    public:
        TableRider();
        virtual ~TableRider();
        DistanceSensor *sensor;
        Motor *left;
        Motor *right;
        ControllerMotor *control;
        unsigned long myTime;
        unsigned long loopTimer;
        char buf[63];
        void loop(void);

    protected:

    private:
    	void setup(void);
        void parseCmd(void);
        void readmessages(void);

};

#endif // TABLERIDER_H
